package com.hao.tool.web.module.rbac.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hao.tool.web.module.rbac.entity.ManagerInfo;
import com.hao.tool.web.module.rbac.mapper.ManagerMapper;
import com.hao.tool.web.module.rbac.service.ManagerService;
import org.springframework.stereotype.Service;

/**
 * description
 *
 * @author RuiHaoZ on CMHK.fs
 * @date 2020-05-24 09:07
 */
@Service
public class ManagerServiceImpl extends ServiceImpl<ManagerMapper, ManagerInfo> implements ManagerService {
    @Override
    public ManagerInfo findByAccount(String userName) {

        QueryWrapper<ManagerInfo> wrapper = new QueryWrapper<>();
        wrapper.eq("ACCOUNT", userName);
        return this.getOne(wrapper);
    }
}
